using System;

namespace Ioc.Kernel.Exceptions
{
    public class UninitializedComponentException : ApplicationException
    {
        public UninitializedComponentException() 
            : base("The component isn't initialized. Use GenerateConstructor method initialize") {}
        
        public UninitializedComponentException(string componentName) 
            : base(string.Format("The component {0} isn't initialized. Use GenerateConstructor method initialize", componentName)) { }
        
        public UninitializedComponentException(string componentName, Exception innerException) 
            : base(string.Format("The component {0} isn't initialized. Use GenerateConstructor method initialize", componentName), innerException) { }
    }
}